﻿#ifndef DATABASE_H
#define DATABASE_H
#include "header.h"
class database
{
public:
    database();
    QSqlQuery exec(const QString &query,QString text = nullptr);
    bool open_db();
    void close();
    QSqlDatabase getDb() { return db; }
    QSqlDatabase db;
    static QString copyImageToDirectory(const QString &targetDirectory);
private:
    QSqlQuery query;
};

#endif // DATABASE_H
